﻿using DirectSell.Model.TreeList;
using DirectSell.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Direct.IDAL.User.Jurisdiction
{
    /// <summary>
    /// 推荐关系数据接口
    /// </summary>
    public interface IRefreeMapRepository:IAbsRepository
    {
        /// <summary>
        /// 查询第一层
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        Task<UserInforMationDetails> GetInfo(string UserCode);
        /// <summary>
        /// 根据推荐关系向后查
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        Task<IList<UserInforMationDetails>> QueryBehind(string UserCode);
        /// <summary>
        /// 获取树状图
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        Task<IList<ZTreeList>> GetZtreeList(int id);
        /// <summary>
        /// 查询下一级
        /// </summary>
        /// <param name="UserCode"></param>
        /// <returns></returns>
        Task<IList<ZTreeList>> GetNext(int userid);

    }
}
